
SRCTREE=$(shell cd .. && pwd)

CFLAGS=-g -Wall -I. -I$(SRCTREE)/mgrfw/include -I$(SRCTREE)/osdep/include -I$(SRCTREE)/pfdep/include
LDFLAGS=

# wlan cli  autoip.
nbnsd_TARGET=nbnsd
nbnsd_SRC=nbnsd.c
nbnsd_OBJ=$(patsubst %.c,%.o,$(nbnsd_SRC))

TARGETS=$(nbnsd_TARGET)

.PHONY: all clean
all: $(TARGETS)

$(nbnsd_TARGET): $(nbnsd_OBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $(nbnsd_TARGET)

$(obj)%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -fr *.o *.a *.bak *~ $(TARGETS) $(nbnsd_OBJ)
